package io.cloud.tec.ant_design_vue_pro.web;

import io.cloud.tec.ant_design_vue_pro.dto.ServiceDTO;
import io.cloud.tec.project.util.JsonUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("api/service")
public class ServiceWeb {

    @GetMapping()
    ServiceDTO info() {
        String service = "{\"key\":1,\"id\":1,\"no\":\"No1\",\"description\":\"这是一段描述\",\"callNo\":\"123\",\"status\":1,\"updatedAt\":\"\",\"editable\":false}";
        return JsonUtils.parseObject(service, ServiceDTO.class);
    }
}